<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" isErrorPage="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<title>Tabuada</title>
</head>
<body>
<h2>Informe o valor do qual deseja visualizar a tabuada</h2>
<form action="tabuadaEspecifica.jsp" method="get">
<b>Valor: </b><input type="text" name="valor"> 
<input type="submit" value="Exibir a tabuada do valor informado">
</form>
<%
	if (exception != null) {
		out.println("<p><b><font color=\"red\">Erro: "+exception.getMessage()+". O valor deve ser um número inteiro.</font></b></p>");
	}

	String erro = (String) request.getAttribute("erro");
	if (erro != null) {
		out.println("<p><b><font color=\"red\">Erro: "+erro+"</font></b></p>");
	}
%>
</body>
</html>